﻿new Vue({
    el: "#divStudent",
    data: {
        search: {
            pageIndex: 1,
            pageSize: 10,
            name: '',
            mobilePhone: '',
            userName: ''
        },
        loading: false,
        student: {
            list: [],
            total: 0
        }
    },
    mounted: function () {
        VmTop.navOn = 2;
        //加载列表数据
        this.getList();

    },
    methods: {

        //列表属性转换
        formatDate: function (row, col, value) {
            return value.split(" ")[0];
        },
        ///跳转页面时
        pageChange: function (page) {
            this.search.pageIndex = page;
            //加载列表数据
            this.getList();
        },
        //查询公告活动动态
        getList: function () {
            var that = this;
            that.loading = true;
            $.getJSON("/student/getList", that.search, function (result) {
                that.student = result;
                that.loading = false;
            });
        }
    }
})